package com.jhgk.jhcee.expert.controller;

import com.github.pagehelper.PageInfo;
import com.jhgk.jhcee.auth.model.SchoolRecruit;
import com.jhgk.jhcee.common.resultful.PageResultful;
import com.jhgk.jhcee.expert.domain.model.SchoolRecruitMode;
import com.jhgk.jhcee.expert.service.SchoolRecruitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/10 9:11.
 */
@RestController
@RequestMapping("/SchoolRecruit")
@Api(value = "院校招生计划",tags = {"院校招生计划"})
public class SchoolRecruitController {

    @Resource(name = "SchoolRecruitServiceImpl")
    SchoolRecruitService schoolRecruitService;

    @PostMapping("/searchSchoolRecruit")
    @ApiOperation("分页查询院校招生计划信息")
    public PageResultful<PageInfo<SchoolRecruit>> searchSchoolRecruit(@RequestBody @Validated SchoolRecruitMode schoolRecruitMode){
        return schoolRecruitService.searchSchoolRecruit(schoolRecruitMode);
    }
}
